<template>
  <div class="send">
    <div class="send-header">
      <div
        class="list"
        v-for="(item, index) in 2"
        :key="index"
        :class="{ 'list-active': index == sendIndex }"
        @click="sendIndexStop(index)"
      >
        <div class="title">{{ index == 0 ? "Send" : "Request" }}</div>
        <div class="lint" v-if="sendIndex == index"></div>
      </div>
    </div>

    <div class="send-block">
      <div class="first-title" style="color: #0070ba;font-size: 20px">ANBIO BIOTECHNOLOGY</div>
      <div class="block-title" style="margin-top: 30px">Send payment to</div>
      <div class="block-search">
        <el-input
          prefix-icon="el-icon-search"
          placeholder="Search by Name, Username, Email, Phone Number"
          v-model="sendSeach"
          clearable
        >
        </el-input>
      </div>
      <div class="block-next" :class="{'block-active': sendSeach != ''}">Next</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      sendIndex: 0,
      sendSeach: "",
    };
  },
  methods: {
    sendIndexStop(index) {
      this.sendIndex = index;
    },
  },
};
</script>

<style lang="less" scoped>
.send {
  .send-header {
    display: flex;
    padding: 0 100px;
    box-sizing: border-box;
    align-items: center;
    width: 100%;
    height: 100px;
    box-shadow: 1px 5px 5px 5px rgba(0, 0, 0, 0.1);

    .list {
      padding: 0 30px;
      box-sizing: border-box;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
      .title {
        font-weight: 500;
        font-size: 14px;
      }

      .lint {
        position: absolute;
        bottom: 0;
        height: 2px;
        width: 100%;
        background: #000;
      }
    }

    .list-active {
      background: #f5f7fb;
      .title {
        font-weight: bold;
      }
    }
  }

  .send-block {
    margin-top: 40px;
    padding: 0 100px;
    box-sizing: border-box;
    text-align: left;

    .block-title {
      font-size: 18px;
      font-weight: bold;
      color: #050505;
    }

    .block-search {
      margin: 40px 0;
      width: 500px;
      height: 50px;

      /deep/.el-input__inner {
        height: 50px;
        border-radius: 50px;
      }
    }

    .block-next {
        padding: 10px 30px;
        box-sizing: border-box;
        border-radius: 20px;
        border: 2px solid #ccc;
        display: inline;
        font-size: 14px;
        font-weight: bold;
        color: rgba(0, 0, 0, 0.1);
        background: #f5f6f8;
        cursor: pointer;
    }
    .block-active {
        background: #0060df;
        color: #fff;
        border: 2px solid #0060df;

    }
  }
}
</style>
